<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
    <script type="text/javascript" src="../../src/objx.test.js"></script>
    <script type="text/javascript" src="../../src/objx.js"></script>
    <script type="text/javascript">
    
        function test_globalShortcuts()
        {
        
            assertEquals(Class, objx.Class);
            assertEquals(Abstract, objx.abstract);
            assertEquals(Interface, objx.interface);
            assertEquals(Method, objx.method);
            assertEquals(Event, objx.event);
 
        }
        
        function test_shortcuts()
        {
        
            assertEquals(objx.c, objx.Class);
            assertEquals(objx.a, objx.abstract);
            assertEquals(objx.i, objx.interface);
            assertEquals(objx.m, objx.method);
            assertEquals(objx.e, objx.event);
            assertEquals(objx.im, objx.implements);
            assertEquals(objx.aa, objx.actsAs);
        
        }
        
        function test_utilityShortcuts()
        {
        
            var MyClass1 = AbstractClass({
                getName: Method()
            });
            
            var MyClass2 = Class(Abstract({
                getName: Method()
            }));
            
            for (var property in MyClass1)
            {
                assertEquals(MyClass1[property].toString(), MyClass2[property].toString());
            }
            
        }
        
    </script>
</head>
<body>
</body>
</html>